import { BasicColumn } from '/@/components/Table'

export const Columns: BasicColumn[] = [
    {
        title: '用户编号',
        dataIndex: '_id',
    },
    {
        title: '头像',
        dataIndex: 'avatar',
        slots: { customRender: 'avatar' },
    },
    {
        title: '用户姓名',
        dataIndex: 'username',
    },
    {
        title: '电话',
        dataIndex: 'phone',
    },
    {
        title: '用户类型',
        dataIndex: 'type',
    },
    {
        title: '个人签名',
        dataIndex: 'desc',
    },
    {
        title: '状态',
        dataIndex: 'status',
        slots: { customRender: 'status' },
    },
]

export const FormConfig = {
    labelWidth: 100,
    schemas: [
        {
            field: '_id',
            label: '用户编号:',
            component: 'Input',
            componentProps: {
                placeholder: '请输入用户编号',
            },
            colProps: {
                xl: 8,
                xxl: 6,
            },
        },
        {
            field: 'username',
            label: '用户名称:',
            component: 'Input',
            componentProps: {
                placeholder: '请输入用户名称',
            },
            colProps: {
                xl: 8,
                xxl: 6,
            },
        },
    ],
}
